package com.mvp.shq.washer.ui.wallet;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.result.BillResult;
import com.mvp.shq.washer.http.Api;
import com.mvp.shq.washer.http.RxSchedulers;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/8/24.
 */

public class WalletModel implements WalletConstract.Model {

    @Override
    public Observable<BaseResult<BillResult>> getBills(String token, String userId, int pageNo, int pageSize) {
        return Api.getInstance().service
                .getBill(token,userId,pageNo,pageSize)
                .compose(RxSchedulers.io_main());
    }
}
